import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { NewModule } from './new/new.module';
import { UserModule } from './user/user.module';
// module层是分解每个模块的方式,app是跟模块,其他模块可以嵌套
// 数据库
import { TypeOrmModule } from '@nestjs/typeorm';
import { Users } from './user/user.entity';

// import { MongooseModule } from '@nestjs/mongoose';

// 装饰器 https://segmentfault.com/a/1190000014495089
@Module({
  imports: [NewModule, UserModule],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
